<template>
  <div>
    <commodRepertory ref="commodRepertory" :type="type"></commodRepertory>
  </div>
</template>

<script>
import commodRepertory from './commodRepertory'

export default {
  components: {
    commodRepertory
  },
  props: ['type'],
  data() {
    return {

    };
  },

  methods: {
    setChengben(obj) {
      this.$refs.commodRepertory.setChengben(obj)
    },
    setData(value) {
      this.$refs.commodRepertory.setData(value)
    },
    async getData() {
      let res = await this.$refs.commodRepertory.getData()
      return res
    }
  },
  mounted() {
  }
};
</script>

<style lang="scss" scoped>

</style>
